
import request from './request'

// export function checkPhoneApi(data) {
//   return request.post('/app/finduser', data)
// }

// export function todoSentCode(params) {
//   return request.get('http://lhx123.love:3300/captcha/sent', {
//     params
//   })
// }

// export function checkCaptcha(params) {
//   return request.get('http://lhx123.love:3300/captcha/verify', {
//     params
//   })
// }
export function checkPhoneApi(data) {
  return request.post('/api/user/docheckphone', data)
}

export function todoSentCode(params) {
  return request.post('/api/user/dosendmsgcode', { params })
}

export function checkCaptcha(params) {
  return request.post('/api/user/docheckcode', {
    params
  })
}

// export const checkPhoneApi = (data) => request.post('/api/user/docheckphone', data)  // 验证手机号码是否被注册过

// export const todoSentCode = (params) => request.post('/api/user/dosendmsgcode', { params }) // 发送短信验证码

// export const checkCaptcha = (params) => request.post('/api/user/docheckcode', { params })   // 验证短信验证码








export const todoRegister = (data) => request.post('https://lhx123.love:3333/app/register', data)

export const todoLogin = (data) => request.post('https://lhx123.love:3333/app/login', data)

export const gettokenApi = (data) => request.post('https://lhx123.love:3333/app/gettoken', data)

export const todochangepass = (data) => request.post('https://lhx123.love:3333/app/changepass', data)

export const todogetuserinfo = (params) => request.get('https://lhx123.love:3333/app/getuserinfo', { params })

export const tochangeuserinfo = (data) => request.post('https://lhx123.love:3333/app/changeuserinfo', data)

export const todouplodafile = (data) => request.post('https://lhx123.love:3333/app/uplodafile', data)

export const todoaddmainshi = (data) => request.post('https://lhx123.love:3333/app/addmainshi', data)

export const todogetmyinterviews = (data) => request.post('https://lhx123.love:3333/app/getmyinterviews', data)   // 获取我的面试记录

export const todogetmsbyid = (data) => request.post('https://lhx123.love:3333/app/getmsbyid', data)   // 根据_id 获取面试详情

export const todogettmsbanners = (data) => request.post('https://lhx123.love:3333/app/gettmsbanners', data)   // 首页轮播数据

export const todogethomelist = (data) => request.post('https://lhx123.love:3333/app/gethomelist', data)   // 首页分页数据

export const todogetallinters = (data) => request.post('https://lhx123.love:3333/app/getallinters', data)   // 获取所有面试题

export const todochangemshot = (data) => request.post('https://lhx123.love:3333/app/changemshot', data)   //  修改面试热度

export const todogetmslikes = (data) => request.post('https://lhx123.love:3333/app/getmslikes', data)   //获取点赞列表 我的

export const todoaddlikeone = (data) => request.post('https://lhx123.love:3333/app/addlikeone', data)   //添加点赞

export const tododellikeone = (data) => request.post('https://lhx123.love:3333/app/dellikeone', data)   //删除点赞记录

export const todochangemsinfo = (data) => request.post('https://lhx123.love:3333/app/changemsinfo', data)   // 修改面试详情数据信息

export const todogetcollectlist = (data) => request.post('https://lhx123.love:3333/app/getcollectlist', data)   // 获取收藏列表 我的 (判断是否收藏 获取我的所有收藏)

export const todoaddcollectone = (data) => request.post('https://lhx123.love:3333/app/addcollectone', data)   // 添加收藏记录

export const tododelcollectone = (data) => request.post('https://lhx123.love:3333/app/delcollectone', data)   // 删除收藏

export const todoaddanswersone = (data) => request.post('https://lhx123.love:3333/app/addanswersone', data)   // 面试题里面的题目

export const todogetanswerlist = (data) => request.post('https://lhx123.love:3333/app/getanswerlist', data)   // 面试题的所有答案

export const todogetpinglist = (data) => request.post('https://lhx123.love:3333/app/getpinglist', data)   // 获取评论列表 我的

export const todoaddpingsone = (data) => request.post('https://lhx123.love:3333/app/addpingsone', data)   //  添加评论

export const todoAddOffer = (data) => request.post('https://lhx123.love:3333/app/offer/add', data)   //  添加OFFer

export const todoGetOfferList = (data) => request.post('https://lhx123.love:3333/app/offer/mylist', data)   //  我的offer列表

export const todoUpdateOffer = (data) => request.post('https://lhx123.love:3333/app/offer/update', data)   //  更新offer（修改字段参考 添加offer ）

export const todoRemoveOffer = (data) => request.post('https://lhx123.love:3333/app/offer/remove', data)   //   删除offer
